package com.osce.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csce.domain.entity.basic.BasicUserExperience;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户经历Mapper接口
 *
 * @author zzx
 * @since 2023-07-18
 */
@Repository
public interface BasicUserExperienceMapper extends BaseMapper<BasicUserExperience> {

    /**
     * 查询用户经历
     *
     * @param id 用户经历主键
     * @return 用户经历
     */
    BasicUserExperience selectBasicUserExperienceById(Long id);

    /**
     * 查询用户经历列表
     *
     * @param basicUserExperience 用户经历
     * @return 用户经历集合
     */
    List<BasicUserExperience> selectBasicUserExperienceList(BasicUserExperience basicUserExperience);

    /**
     * 新增用户经历
     *
     * @param basicUserExperience 用户经历
     * @return 结果
     */
    int insertBasicUserExperience(BasicUserExperience basicUserExperience);

    /**
     * 修改用户经历
     *
     * @param basicUserExperience 用户经历
     * @return 结果
     */
    int updateBasicUserExperience(BasicUserExperience basicUserExperience);

    /**
     * 删除用户经历
     *
     * @param id 用户经历主键
     * @return 结果
     */
    int deleteBasicUserExperienceById(Long id);

    /**
     * 批量删除用户经历
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteBasicUserExperienceByIds(Long[] ids);
}
